package svc

import (
	"api/internal/config"
	"github.com/zeromicro/go-zero/zrpc"
	"rpc/biliclient"
)

type ServiceContext struct {
	Config  config.Config
	BiliRpc biliclient.Bili
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		BiliRpc: biliclient.NewBili(zrpc.MustNewClient(c.BiliRpc)),
	}
}
